import request from '@/router/axios';

//获取当前企业下属客户
export const getNextCustomer = (data) => request({
  url: '/api/blade-public/bladeUser/branch1',
  method: 'post',
  data
})
//顶部邮件统计 emailStatic
export const emailStatic = (data) => request({
  url: '/api/blade-email/emailInfoHome/quantity/statistics',
  method: 'get',
})
//社交统计
export const socialStatic = (data) => request({
  url: '/api/blade-social/socialFeed/home/counts',
  method: 'get',
  params: data
})
//客户统计饼状图
export const customerInfo = (data) => request({
  url: '/api/blade-custom/custInfo/statistics',
  method: 'post',
  data
})
//邮件统计饼状图
export const getEmailBar = (data) => request({
  url: '/api/blade-email/tEmailSpreadInfo/statistics',
  method: 'get',
  params: data
})
//获取工作量
export const getWork = (data) => request({
  url: '/api/blade-custom/custInfo/workLoadCount',
  method: 'post',
  data
})
//获取往来邮件
export const getRollBackEmail = (data) => request({
  url: '/api/blade-public/home/customer/reply',
  method: 'get',
})

//汇率列表
export const getRateList = () => request({
  url: '/api/blade-public/tExchangeRate',
  method: 'get',
})
//汇率折线图
export const getRateEchart = (currencyName) => request({
  url: '/api/blade-public/tExchangeRate/linear',
  method: 'get',
  params: {
    currencyName:currencyName
  }
})
